package com.maserb.monitor.service.schoolStudent;

import com.maserb.monitor.entity.card.AttendanceRecordEntity;
import com.maserb.monitor.entity.schoolConduct.StudentConductRecordEntity;
import com.maserb.monitor.remote.SchoolRecordRequestEntity;
import com.maserb.monitor.repository.schoolStudent.AttendanceRecordRepository;
import com.maserb.monitor.repository.schoolStudent.AttendanceRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


public interface AttendanceRecordService extends JpaSpecificationService<AttendanceRepository, AttendanceRepository, AttendanceRecordEntity, String> {
    Page<AttendanceRecordEntity> findAll(Pageable pageable, String deviceId, String cardId, String studentId, String optType, String startTime);

    List<AttendanceRecordEntity> findAll(String deviceId, String cardId, String studentId, String optType, String startTime);

    Page<AttendanceRecordEntity> findAll(Pageable pageable, String userId, String name, String studentId, String clazzId, Integer optType, String startTime, String endTime);

    Integer saveRecord(SchoolRecordRequestEntity requestEntity);

}